#pragma warning disable 108
using System;
using System.Runtime.InteropServices;
using System.Collections.Generic;
using Cephei;
using Cephei.Core;
using Cephei.Core.Generic;
using Microsoft.FSharp.Core;
namespace Cephei.QL
{
    /// <summary> 
	/// ! \todo what was the rationale for limiting the grid to positive times? Investigate and see whether we can use it for negative ones as well.
	/// </summary>
    [Guid ("53509475-8821-4367-8CFA-476E76C7B0BA"),ComVisible(true)]
	public interface ITimeGrid 
	{
		///////////////////////////////////////////////////////////////
        // Methods
        //
        /// <summary> 
		/// 
		/// </summary>
		 Double At(UInt64 i);
        /// <summary> 
		/// 
		/// </summary>
		 Double Back {get;}
        /// <summary> 
		/// 
		/// </summary>
		 UInt64 ClosestIndex(Double t);
        /// <summary> 
		/// 
		/// </summary>
		 Double ClosestTime(Double t);
        /// <summary> 
		/// 
		/// </summary>
		 Double Dt(UInt64 i);
        /// <summary> 
		/// 
		/// </summary>
		 Boolean Empty {get;}
        /// <summary> 
		/// 
		/// </summary>
		 Double Front {get;}
        /// <summary> 
		/// 
		/// </summary>
		 UInt64 Index(Double t);
        /// <summary> 
		/// 
		/// </summary>
		 Cephei.Core.IVector<Double> MandatoryTimes {get;}
        /// <summary> 
		/// 
		/// </summary>
		 UInt64 Size {get;}
    }   

    /// <summary> 
	/// ! \todo what was the rationale for limiting the grid to positive times? Investigate and see whether we can use it for negative ones as well. Factory
	/// </summary>
   	[ComVisible(true)]
    public interface ITimeGrid_Factory 
    {
        ///////////////////////////////////////////////////////////////
        // Factory methods
        //
        /// <summary> 
		/// 
		/// </summary>
	    ITimeGrid Create (Double end, UInt64 steps);
        /// <summary> 
		/// 
		/// </summary>
	    ITimeGrid Create ();
    }
}

